package okw.database;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import core.modules.database.SuperSummaryPackage;

public class SummaryPackage extends SuperSummaryPackage implements Serializable {

	private static final long serialVersionUID = -4961580111658580599L;
	
	private Set<OKWElectionResult> okwElectionResults = new HashSet<OKWElectionResult>();
	private Boolean isSend = false;


	public SummaryPackage() {
		super();
	}

	public Set<OKWElectionResult> getOkwElectionResults() {
		return okwElectionResults;
	}

	public void setOkwElectionResults(Set<OKWElectionResult> okwElectionResults) {
		this.okwElectionResults = okwElectionResults;
	}

	public Boolean getIsSend() {
		return isSend;
	}

	public void setIsSend(Boolean isSend) {
		this.isSend = isSend;
	}
	
	public void removeFromElection(Election election){
		election.setSummaryPackage(null);
	}
}
